package org.huhuiyu.easyui.service.impl;

import java.util.List;
import org.huhuiyu.easyui.enity.Dtreemenu;
import org.huhuiyu.easyui.service.DtreemenuService;
import org.huhuiyu.easyui.dao.DtreemenuDAO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class DtreemenuServiceImpl implements DtreemenuService {

	@Autowired
	private DtreemenuDAO dtreemenuDAO;
	
	public DtreemenuServiceImpl() {
	}
	
	public void setDtreemenuDAO(DtreemenuDAO dtreemenuDAO){
		this.dtreemenuDAO=dtreemenuDAO;
	}
	
	public DtreemenuDAO getDtreemenuDAO(){
		return dtreemenuDAO;
	}
	
	@Override
	public void deleteDtreemenu(Dtreemenu dtreemenu) throws Exception {
		dtreemenuDAO.deleteDtreemenu(dtreemenu);
	}

	@Override
	public List<Dtreemenu> queryAllDtreemenu() throws Exception {
		return dtreemenuDAO.queryAllDtreemenu(); 
	}

	@Override
	public Dtreemenu queryDtreemenuByKey(Dtreemenu dtreemenu) throws Exception {
		return dtreemenuDAO.queryDtreemenuByKey(dtreemenu);
	}

	@Override
	public void saveDtreemenu(Dtreemenu dtreemenu) throws Exception {
		dtreemenuDAO.saveDtreemenu(dtreemenu);
	}

	@Override
	public void updateDtreemenu(Dtreemenu dtreemenu) throws Exception {
		dtreemenuDAO.updateDtreemenu(dtreemenu);
	}	
}